package com.mall.mapper;

import com.mall.pojo.goods;
import com.mall.pojo.subCate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.mall.pojo.layoutheader;
import java.util.List;

@Mapper
public interface layoutHeaderMapper {
    @Select("select * from layoutHeader")
    List<layoutheader> findAll();
    @Select("SELECT * FROM layoutheader WHERE id = #{id}")
    layoutheader findById(int id);
    @Select("SELECT * FROM goods WHERE parentId = #{tableId}")
    List<goods> findGoodsById(int tableId); //通过主类别id找

}
